﻿'use strict';

angular.module('ishaCrmApp')
    .controller('memberCtrl', ['$scope','$timeout', '$location', '$routeParams', 'stateSvc', 'memberService', function ( $scope, $timeout, $location, $routeParams, stateSvc, memberService) {
        $scope.member = {};

        $timeout(function () {
            memberService.getMember($routeParams.id).then(function (resp) {
                $scope.member = resp;
                //console.log($scope.member);
            }, function (errorinfo) { stateSvc.alertError(errorinfo.errorinfo); })
        }, 2000);
    }]);